package cn.net.sichen.ekclient.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HealthController {

    public static boolean canVistDb = false;

    @RequestMapping("/db/{canVisitDb}")
    public String setConnectState(@PathVariable Boolean canVisitDb) {
        this.canVistDb = canVisitDb;
        return "当前数据库连接状态：" + this.canVistDb;
    }
}
